﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Common.Event.Web
{
    public abstract class WebEvent
    {
        /// <summary>
        /// [common]
        /// 状态
        /// </summary>
        public WebEventState State { get; set; }

        /// <summary>
        /// [common]
        /// 错误信息，当state等于Failure时，可以从这里获取错误信息
        /// </summary>
        public Exception Error { get; set; }

        public WebEvent(WebEventState state)
        {
            State = state;
        }
    }
}
